using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Crm.Domain.TestUtil;

namespace Crm.Domain.Tests
{
    [TestFixture]
    public class AddressTests
    {
        [Test]
        public void ToStringTest()
        {
            string[] AddressLines = new string[] { "1 Peabody Way", "The Marsh"};
            const string City = "City";
            const string RegionOrState = "RegionOrState";
            const string ZipOrPostCode = "ZipOrPostCode";

            Address address = new Address(AddressLines, City, RegionOrState, ZipOrPostCode);

            string expectedAddress = String.Format("1 Peabody Way,{0}The Marsh,{0}City,{0}RegionOrState,{0}ZipOrPostCode.", Environment.NewLine);

            Assert.AreEqual(expectedAddress, address.ToString());
        }
    }
}
